import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import http from '@/http/index'

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

// 引入进度条样式
import 'nprogress/nprogress.css'

// 引入图表
import VCharts from 'v-charts'

Vue.use(VCharts)

import echarts from 'echarts'

Vue.prototype.$echarts = echarts

import china from 'echarts/map/json/china.json'
echarts.registerMap('china', china)


// 炫酷图标
import dataV from '@jiaminghi/data-view'

Vue.use(dataV)


Vue.config.productionTip = false

Vue.use(ElementUI);

// 全局路由守卫
import './router/permission'
Vue.prototype.http = http
Vue.prototype.eui = ElementUI
Vue.prototype.baseurl = "/proxy"

// 全局注册指令
import vPermission from './directive/permission'
Vue.directive('permission', vPermission)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
